package com.lakeworks.event;

import lombok.Data;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class DistributionEvent extends ApplicationEvent {

    private String shipmentNo;

    private Long channelId;

    public DistributionEvent(Object source,String shipmentNo,Long channelId) {
        super(source);
        this.shipmentNo = shipmentNo;
        this.channelId = channelId;
    }

    @Override
    public String toString() {
        return "DistributionEvent{" +
                "shipmentNo='" + shipmentNo + '\'' +
                ", channelId=" + channelId +
                '}';
    }
}
